package com.anyisn.anyflickr.common.events
{
	import com.adobe.webapis.flickr.Photo;
	
	import flash.display.Bitmap;
	import flash.events.Event;
	
	public class PhotoLoadEvent extends Event
	{
		public static const LOAD_PHOTO_FAIL:String = 'loadPhotoFail';
		public static const LOAD_PHOTO_SUCCESS:String = 'loadPhotoSuccess';
		public var bitmap:Bitmap;
		public var photo:Photo;
		
		public function PhotoLoadEvent(type:String, photo:Photo, bitmap:Bitmap=null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			this.photo = photo;
			this.bitmap = bitmap;
			super(type, bubbles, cancelable);
		}
	}
}